﻿//****************************************************************************************************
//Author:          Jun Wang
//Guid:		       5710fb08-6f52-4374-9d4f-e6aaef56f89f
//DateTime:        3/4/2013 12:40:55 PM
//Email Address:   admin@9un.org
//FileName:        IntPtrExtensions
//CLR Version:     4.0.30319.18033
//Machine Name:    META-DESKTOP
//Namespace:       RuanRang.Media.Core.Exceptions
//Function:                
//Description:    
//****************************************************************************************************
using System;
using System.Runtime.InteropServices;

namespace RuanRang.Media.Core.Exceptions
{
    internal static class IntPtrExtensions
    {
        public static string ToStringAnsi(IntPtr ptr)
        {
            return ptr != IntPtr.Zero ? Marshal.PtrToStringAnsi(ptr) : null;
        }
    }
}
